//
//  HMCommon.swift
//  WeiBo
//
//  Created by Feng on 2017/6/7.
//  Copyright © 2017年 feng. All rights reserved.
//

import UIKit

//切换根视图的通知名称
let SwitchRootViewControllerNotification = "SwitchRootViewControllerNotification"
//  点击表情按钮的通知
let ClickEmotionButtonNotificationName = "ClickEmotionButtonNotificationName"
// 点击删除按钮
let ClickDeleteButtonNotificationName = "ClickDeleteButtonNotificationName"

//  boundle对象
let EmoticonButton = HMEmoticonTools.sharedTools.emoticonBundle

//homeCell注册标识符
let HomeCellIdentifier = "HomeCellIdentifier"

//homePictureView注册标识符
let HomePictureViewIdentifier = "HomePictureViewIdentifier"

//pictureView注册标识符
let HMComposePictureViewIdentifier = "HMComposePictureViewIdentifier"

//emoticon注册标识符
let HMEmoticonKeyboardIdentifier = "HMEmoticonKeyboardIdentifier"

//随机色
func RandomColor() -> UIColor
{
    let red = CGFloat(arc4random_uniform(256)) / 255.0
    let green = CGFloat(arc4random_uniform(256)) / 255.0
    let blue = CGFloat(arc4random_uniform(256)) / 255.0
    
    let randomColor: UIColor = UIColor(red: red, green: green, blue: blue, alpha: 1)
    
    return randomColor
}

//cell间距
let HomeCellMargin: CGFloat = 10

//屏幕宽高
let ScreenWidth = UIScreen.main.bounds.size.width
let ScreenHeight = UIScreen.main.bounds.size.height


